package com.buddies.lottery.ui.withdraw.record;

import android.content.Context;
import android.content.Intent;

import com.buddies.lottery.base.list.BaseListActivity;
import com.buddies.lottery.data.bean.WithdrawRecord;
import com.chad.library.adapter.base.BaseQuickAdapter;

public class WithdrawRecordActivity extends BaseListActivity<WithdrawRecord, WithdrawRecordContract.Presenter> implements WithdrawRecordContract.View {

    @Override
    protected String getHeaderTitle() {
        return "提现记录";
    }

    @Override
    protected void initData() {
        super.initData();

        mPresenter = new WithdrawRecordPresenter(this);
    }

    @Override
    protected BaseQuickAdapter createAdapter() {
        return new WithdrawRecordAdapter(null);
    }

    @Override
    public void onLoadData(int page) {
        ((WithdrawRecordContract.Presenter) mPresenter).onLoadData(null, page);
    }

    public static void launch(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, WithdrawRecordActivity.class);
        context.startActivity(intent);
    }

}
